﻿using System;

namespace MessagePack.Formatters
{
	// Token: 0x02000031 RID: 49
	public class Int32Formatter : IMessagePackFormatter<int>
	{
		// Token: 0x060000B3 RID: 179 RVA: 0x00003F6B File Offset: 0x0000236B
		private Int32Formatter()
		{
		}

		// Token: 0x060000B4 RID: 180 RVA: 0x00003F73 File Offset: 0x00002373
		public int Serialize(ref byte[] bytes, int offset, int value, IFormatterResolver formatterResolver)
		{
			return MessagePackBinary.WriteInt32(ref bytes, offset, value);
		}

		// Token: 0x060000B5 RID: 181 RVA: 0x00003F7D File Offset: 0x0000237D
		public int Deserialize(byte[] bytes, int offset, IFormatterResolver formatterResolver, out int readSize)
		{
			return MessagePackBinary.ReadInt32(bytes, offset, out readSize);
		}

		// Token: 0x04000025 RID: 37
		public static readonly Int32Formatter Instance = new Int32Formatter();
	}
}
